/*
 * @Description  : 请求示例
 * @Version      : 1.0
 * @Author       : kangshifu
 * @Date         : 2022-05-31 23:36:13
 * @LastEditors  : kangshifu
 * @LastEditTime : 2022-05-31 23:43:42
 */
import request from '@/request/axios';
/**
 * @description: post 请求示例
 * @param {object} data
 * @return {*}
 * @author: kangshifu
 * noLoading 是否需要Loading
 * noToken   接口是否需要TOKEN
 * noToast   是否需要 Toast
 */
 export const post = (data:object) => {
    return request({
      url: '请求url',
      method: 'post',
      data,
      noLoading:true,
      noToken:false,
      noToast:true,
    });
}

/**
 * @description: get 请求示例
 * @param {object} data
 * @return {*}
 * @author: kangshifu
 * noLoading 是否需要Loading
 * noToken   接口是否需要TOKEN
 * noToast   是否需要 Toast
 */
export const getlist = (data:object) => {
    return request({
      url: '请求url',
      method: 'get',
      data,
      noLoading:true,
      noToken:false,
      noToast:true,
    });
}